/*
 * This program computes John's weight
 * on the moon.
 *
 * Name this file GravMoonEarth.java
 * Program written by John Kim on Wed Jan 1 10:50:03 PST 2014
 */

class GravMoonEarth {
    public static void main(String args[]) {
        double weightOnEarth, weightOnMoon;

        weightOnEarth = 125;
        
        // Why doesn't weightOnEarth * (17/100) work? It yields 0.
        weightOnMoon = 17 * weightOnEarth / 100;

        System.out.println("John weighs "
                + weightOnEarth + 
                " pounds on earth.");
        System.out.println("On the moon, John weighs " 
                + weightOnMoon + 
                " pounds.");
    }
}

